import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpExchangeList {
  id!: number;
  title!: string;
  type!: number;
  cid?: number;
  addTime!: string;
  uniacid!: number;
}

export const ImsYzdKpExchangeListSchema = new EntitySchema({
  class: ImsYzdKpExchangeList,
  properties: {
    id: { primary: true, type: 'number' },
    title: { type: 'string', length: 255 },
    type: { type: 'number' },
    cid: { type: 'number', nullable: true },
    addTime: { type: 'string', length: 255 },
    uniacid: { type: 'number' },
  },
});
